package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author syh
 * @create 2023-08-15 17:17
 */
@Mapper
public interface SysRoleMapper {
    List<SysRole> selectPageByKeyword(String keyword);

    void deleteById(Long id);

    void save(SysRole sysRole);

    SysRole getById(Long id);

    void updateById(SysRole sysRole);

    List<SysRole> selectAllRolesByUserId(Long userId);
}
